package com.erp.erp_servers.CustomerComplaint;

import com.erp.erp_entitys.CustomerComplaint.CustomerComplaintAndProduct;
import com.erp.erp_entitys.CustomerComplaint.CustomerComplaintEntity;
import com.erp.erp_entitys.CustomerComplaint.CustomerComplaintVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ICustomerComplaintService {
    int deleteByPrimaryKey(Integer id);

    int insert(CustomerComplaintEntity record);

    int insertSelective(CustomerComplaintEntity record);

    CustomerComplaintEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CustomerComplaintEntity record);

    int updateByPrimaryKey(CustomerComplaintEntity record);

    PageInfo<CustomerComplaintEntity> selectCustomerComplainPage(CustomerComplaintVo query);

    int updateBoxStatusBykey(CustomerComplaintVo ccVo);

    CustomerComplaintEntity selectInfoById(Integer id);

    int insertProAndFile(CustomerComplaintEntity record);

    int updateInfoById(CustomerComplaintEntity record);

    boolean isExist(String oddNumber);

    int getCountNum();

    List<CustomerComplaintAndProduct> selectCustomerComplainAndProductList(CustomerComplaintVo ccVo);
}